import request from '@/utils/request_axios'
// 北塔外部系统查询
export function queryBots(data) {
  return request({
    url: '/btos/externalsystem',
    method: 'get',
    data: data
  })
}
// 北塔外部系统新增
export function addBots(data) {
  return request({
    url: '/btos/externalsystem',
    method: 'post',
    data: data
  })
}
// 北塔外部系统修改
export function editBots(data) {
  return request({
    url: '/btos/externalsystem',
    method: 'put',
    data: data
  })
}
// 北塔外部系统修改
export function queryBotsDetail(id) {
  return request({
    url: '/btos/externalsystem',
    method: 'get',
    show: true,
    data: {
      id
    }
  })
}
// 北塔外部系统修改
export function deleteBots(id) {
  return request({
    url: '/btos/externalsystem',
    method: 'delete',
    show: true,
    data: {
      id
    }
  })
}
// 北塔外部系统禁用
export function updateBots(data) {
  return request({
    url: `/btos/externalsystem/${data.id}/${data.status}`,
    method: 'put',
    show: true
  })
}

